<template>
  <div>
    <div>
      <router-link active-class="active" to="/Home">首页</router-link>
      <router-link active-class="active" to="/About">关于</router-link>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  data() {
    return {
      str: "这个是一个str",
    };
  },
};
</script>

<style>
.active {
  color: red;
}
</style>
